// import { Component } from 'react'

export default function Demo({ car, money }) {
  return (
    <div>
      <h1>我是Demo组件</h1>
      <div>{car}</div>
      <div>{money}</div>
    </div>
  )
}
/*
class Demo extends Component {
  render() {
    return (
      <div>
        <h1>我是Demo组件</h1>
      </div>
    )
  }
} */
